home *** CD-ROM | disk | FTP | other *** search
/ Chip 1996 November / Chip 11-96.iso / workshop / other / testlin / testlin.exe / LINUX / SBIN / CDROMCON.{_8 < prev    next >
Encoding:
Text File  |  1995-11-14  |  1.3 KB  |  48 lines

  1. #!/bin/sh
  2. #
  3. # Setup CDROM port 
  4. #
  5. dialog --title "CDROM PORT CONFIGURATION" \
  6. --yesno "\n\
  7. This part of the configuration process will create a link in /dev\n\
  8. from your cdrom device to /dev/cdrom. You can change this link\n\
  9. later if the setting chosen does not work, or if you switch to a\n\
  10. different port.\n\n\
  11. Would you like to set up your cdrom?" 20 70
  12. if [ $? = 0 ]; then
  13.   dialog --title "SELECT PORT" --menu "Your cdrom requires a entry point.\n\
  14.  Which one would you \
  15. like to use?" 20 60 12 \
  16. "hdc" "ATAPI CDROM" \
  17. "sr0" "First SCSI CDROM" \
  18. "sr1" "Second SCSI CDROM" \
  19. "sr2" "Third SCSI CDROM" \
  20. "cdu31a" "cdu31a CDROM" \
  21. "cdu535" "cdu535 CDROM" \
  22. "cm205cd" "Phillips CDROM" \
  23. "cm206cd" "Phillips CDROM" \
  24. "hitcd" "Hitachi CDROM" \
  25. "aztcd" "Aztec;Orchid;Okano;Wearnes CDROM" \
  26. "sbpcd0" "Soundblaster CDROM" \
  27. "sbpcd1" "Soundblaster CDROM" \
  28. "sbpcd2" "Soundblaster CDROM" \
  29. "sbpcd3" "Soundblaster CDROM" \
  30. "sbpcd4" "Soundblaster CDROM" \
  31. "sbpcd5" "Soundblaster CDROM" \
  32. "sbpcd6" "Soundblaster CDROM" \
  33. "sbpcd7" "Soundblaster CDROM" \
  34. "sonycd" "Sony CDROM" \
  35. "mcd" "Mitsumi CDROM" 2> /tmp/pport
  36.   if [ $? = 1 ]; then
  37.    rm -f /tmp/pport
  38.    exit
  39.   fi
  40.   CDROM_DEVICE="`cat /tmp/pport`"
  41.   rm -f /tmp/pport
  42.   rm -f /dev/cdrom
  43.   (cd /dev; ln -sf /dev/$CDROM_DEVICE cdrom)
  44.  
  45. # end
  46. fi
  47.  
  48.